Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Add ReadOnlySequence support to Utf8JsonReader with unit tests #33462

Merged
merged 15 commits into from
Nov 19, 2018

Conversation

ahsonkhan
Copy link
Member

@ahsonkhan ahsonkhan commented Nov 13, 2018

TODO:

@ahsonkhan ahsonkhan changed the title [WIP] Add ReadOnlySequence support to Utf8JsonReader Add ReadOnlySequence support to Utf8JsonReader and positive unit tests Nov 14, 2018
@ahsonkhan
Copy link
Member Author

ahsonkhan commented Nov 17, 2018

Any other feedback (other than what's already pending)?

@ahsonkhan ahsonkhan changed the title Add ReadOnlySequence support to Utf8JsonReader and positive unit tests Add ReadOnlySequence support to Utf8JsonReader with unit tests Nov 17, 2018
@ahsonkhan
Copy link
Member Author

ahsonkhan commented Nov 19, 2018

If there is no other significant PR feedback, I would like to merge this in so it can be consumed upstream. I would prefer to address non-blocking issues separately.

@ahsonkhan ahsonkhan merged commit 0354aa6 into dotnet:master Nov 19, 2018
@ahsonkhan ahsonkhan deleted the AddReadOnlySequeunce branch November 19, 2018 06:19
jlennox pushed a commit to jlennox/corefx that referenced this pull request Dec 16, 2018
…t#33462)

* Use a custom BitArray impl instead of a stack for memory efficiency

* Grow the bit array by doubling and apply BitArray PR feedback

* Add ReadOnlySequence ctor and fields to support multi-segment

* Update the ref by auto-generating it

* Add valid JSON multi-segment tests and update ReadMultiSegment to use
GetNextSpan

* Address previous PR feedback around comments

* Address PR feedback and add some invalid json tests.

* Update invalid json tests and fix test returned byte position in line.

* Fix exception messages and copy only what is relevant to the stack span.

* Add tests which compares span-sequence state during reading and fix
bugs.

* Remove unused variable and update ROSequence tests.

* Fix changes related to BitStack.

* Remove previous bit array impl in favor of BitStack.
@karelz karelz added this to the 3.0 milestone Dec 21, 2018
@ahsonkhan
Copy link
Member Author

picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…t/corefx#33462)

* Use a custom BitArray impl instead of a stack for memory efficiency

* Grow the bit array by doubling and apply BitArray PR feedback

* Add ReadOnlySequence ctor and fields to support multi-segment

* Update the ref by auto-generating it

* Add valid JSON multi-segment tests and update ReadMultiSegment to use
GetNextSpan

* Address previous PR feedback around comments

* Address PR feedback and add some invalid json tests.

* Update invalid json tests and fix test returned byte position in line.

* Fix exception messages and copy only what is relevant to the stack span.

* Add tests which compares span-sequence state during reading and fix
bugs.

* Remove unused variable and update ROSequence tests.

* Fix changes related to BitStack.

* Remove previous bit array impl in favor of BitStack.


Commit migrated from dotnet/corefx@0354aa6
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants